package org.yaukie.helper;

import java.util.Properties;
import org.yaukie.util.PropsUtil;

public final class ConfigHelper {
    private static Properties PROP = PropsUtil.loadProps("x1.properties");

    public ConfigHelper() {
    }

    public static String getAppBasePackage() {
        return PropsUtil.getString(PROP, "x1.myjob.base.package");
    }

    public static boolean isAutoOn() {
        return PropsUtil.getBoolean(PROP, "x1.myjob.auto.on", false);
    }

    public static String getString(String key) {
        return PropsUtil.getString(PROP, key);
    }

    public static int getInt(String key) {
        return PropsUtil.getInt(PROP, key);
    }

    public static boolean getBoolean(String key) {
        return PropsUtil.getBoolean(PROP, key);
    }
}